package com.mine.yyb.modules.sys.vo;

import com.mine.yyb.common.utils.jdbc.MineBaseVO;

/**
 * <pre>
 * <一句话功能简述>
 * 
 * 订单信息VO类
 * 
 * <功能详细描述>
 * </pre>
 * 
 * @author xuganhua
 * @version [版本号, 2015年12月28日]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */
public class OrderVO extends MineBaseVO
{
    
    /**
     * serialVersionUID
     */
    private static final long serialVersionUID = -1662710184720018418L;
    
    // 表名
    public static final String TABLE_NAME = "t_yyb_sys_order";
    
    // 主键
    private int id;
    
    // 购物网站
    private String activity;
    
    // 商品名称
    private String productName;
    
    // 商品单价
    private double price;
    
    // 商品数量
    private int count;
    
    // 订单编号
    private String orderID;
    
    // 购物网站 1、日本亚马逊 2、6pm 3、日本乐天 4、乐天国际
    private String shopSite;
    
    // 标签1
    private String label;
    
    // 返利编号
    private String rebateID;
    
    // 返利金额
    private double rebate;
    
    // 内部ID
    private String innerID;
    
    // 该订单需要分成给上线用户的返利金额
    private double parentRebate;
    
    // 该用户的上线用户
    private String parentInnerID;
    
    // 订单价格
    private double orderPrice;
    
    // 订单日期
    private String orderDate;
    
    // 是否符合返利规则 1、无效 2、有效 3、待审核
    private int isValid;
    
    // 是否已经返利 1、未返利 2、已返利
    private int isRebate;
    
    // 是否已经返利 1、未返利 2、已返利
    private int isParentRebate;
    
    // 创建日期
    private String createDate;
    
    // 更新日期
    private String updateDate;
    
    // 用户名
    private String username;
    
    // 用户姓名
    private String name;
    
    /**
     * 获取 id
     * 
     * @return 返回 id
     */
    public int getId()
    {
        return id;
    }
    
    /**
     * 设置 id
     * 
     * @param 对id进行赋值
     */
    public void setId(int id)
    {
        this.id = id;
    }
    
    /**
     * 获取 activity
     * 
     * @return 返回 activity
     */
    public String getActivity()
    {
        return activity;
    }
    
    /**
     * 设置 activity
     * 
     * @param 对activity进行赋值
     */
    public void setActivity(String activity)
    {
        this.activity = activity;
    }
    
    /**
     * 获取 productName
     * 
     * @return 返回 productName
     */
    public String getProductName()
    {
        return productName;
    }
    
    /**
     * 设置 productName
     * 
     * @param 对productName进行赋值
     */
    public void setProductName(String productName)
    {
        this.productName = productName;
    }
    
    /**
     * 获取 price
     * 
     * @return 返回 price
     */
    public double getPrice()
    {
        return price;
    }
    
    /**
     * 设置 price
     * 
     * @param 对price进行赋值
     */
    public void setPrice(double price)
    {
        this.price = price;
    }
    
    /**
     * 获取 count
     * 
     * @return 返回 count
     */
    public int getCount()
    {
        return count;
    }
    
    /**
     * 设置 count
     * 
     * @param 对count进行赋值
     */
    public void setCount(int count)
    {
        this.count = count;
    }
    
    /**
     * 获取 orderID
     * 
     * @return 返回 orderID
     */
    public String getOrderID()
    {
        return orderID;
    }
    
    /**
     * 设置 orderID
     * 
     * @param 对orderID进行赋值
     */
    public void setOrderID(String orderID)
    {
        this.orderID = orderID;
    }
    
    /**
     * 获取 shopSite
     * 
     * @return 返回 shopSite
     */
    public String getShopSite()
    {
        return shopSite;
    }
    
    /**
     * 设置 shopSite
     * 
     * @param 对shopSite进行赋值
     */
    public void setShopSite(String shopSite)
    {
        this.shopSite = shopSite;
    }
    
    /**
     * 获取 label
     * 
     * @return 返回 label
     */
    public String getLabel()
    {
        return label;
    }
    
    /**
     * 设置 label
     * 
     * @param 对label进行赋值
     */
    public void setLabel(String label)
    {
        this.label = label;
    }
    
    /**
     * 获取 rebateID
     * 
     * @return 返回 rebateID
     */
    public String getRebateID()
    {
        return rebateID;
    }
    
    /**
     * 设置 rebateID
     * 
     * @param 对rebateID进行赋值
     */
    public void setRebateID(String rebateID)
    {
        this.rebateID = rebateID;
    }
    
    /**
     * 获取 rebate
     * 
     * @return 返回 rebate
     */
    public double getRebate()
    {
        return rebate;
    }
    
    /**
     * 设置 rebate
     * 
     * @param 对rebate进行赋值
     */
    public void setRebate(double rebate)
    {
        this.rebate = rebate;
    }
    
    /**
     * 获取 isParentRebate
     * 
     * @return 返回 isParentRebate
     */
    public int getIsParentRebate()
    {
        return isParentRebate;
    }
    
    /**
     * 设置 isParentRebate
     * 
     * @param 对isParentRebate进行赋值
     */
    public void setIsParentRebate(int isParentRebate)
    {
        this.isParentRebate = isParentRebate;
    }
    
    /**
     * 获取 innerID
     * 
     * @return 返回 innerID
     */
    public String getInnerID()
    {
        return innerID;
    }
    
    /**
     * 设置 innerID
     * 
     * @param 对innerID进行赋值
     */
    public void setInnerID(String innerID)
    {
        this.innerID = innerID;
    }
    
    /**
     * 获取 parentRebate
     * 
     * @return 返回 parentRebate
     */
    public double getParentRebate()
    {
        return parentRebate;
    }
    
    /**
     * 设置 parentRebate
     * 
     * @param 对parentRebate进行赋值
     */
    public void setParentRebate(double parentRebate)
    {
        this.parentRebate = parentRebate;
    }
    
    /**
     * 获取 parentInnerID
     * 
     * @return 返回 parentInnerID
     */
    public String getParentInnerID()
    {
        return parentInnerID;
    }
    
    /**
     * 设置 parentInnerID
     * 
     * @param 对parentInnerID进行赋值
     */
    public void setParentInnerID(String parentInnerID)
    {
        this.parentInnerID = parentInnerID;
    }
    
    /**
     * 获取 orderPrice
     * 
     * @return 返回 orderPrice
     */
    public double getOrderPrice()
    {
        return orderPrice;
    }
    
    /**
     * 设置 orderPrice
     * 
     * @param 对orderPrice进行赋值
     */
    public void setOrderPrice(double orderPrice)
    {
        this.orderPrice = orderPrice;
    }
    
    /**
     * 获取 orderDate
     * 
     * @return 返回 orderDate
     */
    public String getOrderDate()
    {
        return orderDate;
    }
    
    /**
     * 设置 orderDate
     * 
     * @param 对orderDate进行赋值
     */
    public void setOrderDate(String orderDate)
    {
        this.orderDate = orderDate;
    }
    
    /**
     * 获取 isValid
     * 
     * @return 返回 isValid
     */
    public int getIsValid()
    {
        return isValid;
    }
    
    /**
     * 设置 isValid
     * 
     * @param 对isValid进行赋值
     */
    public void setIsValid(int isValid)
    {
        this.isValid = isValid;
    }
    
    /**
     * 获取 isRebate
     * 
     * @return 返回 isRebate
     */
    public int getIsRebate()
    {
        return isRebate;
    }
    
    /**
     * 设置 isRebate
     * 
     * @param 对isRebate进行赋值
     */
    public void setIsRebate(int isRebate)
    {
        this.isRebate = isRebate;
    }
    
    /**
     * 获取 createDate
     * 
     * @return 返回 createDate
     */
    public String getCreateDate()
    {
        return createDate;
    }
    
    /**
     * 设置 createDate
     * 
     * @param 对createDate进行赋值
     */
    public void setCreateDate(String createDate)
    {
        this.createDate = createDate;
    }
    
    /**
     * 获取 updateDate
     * 
     * @return 返回 updateDate
     */
    public String getUpdateDate()
    {
        return updateDate;
    }
    
    /**
     * 设置 updateDate
     * 
     * @param 对updateDate进行赋值
     */
    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }
    
    /**
     * 获取 username
     * 
     * @return 返回 username
     */
    public String getUsername()
    {
        return username;
    }
    
    /**
     * 设置 username
     * 
     * @param 对username进行赋值
     */
    public void setUsername(String username)
    {
        this.username = username;
    }
    
    /**
     * 获取 name
     * 
     * @return 返回 name
     */
    public String getName()
    {
        return name;
    }
    
    /**
     * 设置 name
     * 
     * @param 对name进行赋值
     */
    public void setName(String name)
    {
        this.name = name;
    }
    
    /**
     * <pre>
     * <一句话功能简述>
     * <功能详细描述>
     * </pre>
     *
     * @author 姓名 工号
     * @version [版本号, 2017年6月28日]
     * @return
     * @see [类、类#方法、类#成员]
     */
    @Override
    public String toString()
    {
        return "OrderVO [id=" + id + ", activity=" + activity + ", productName=" + productName + ", orderID=" + orderID
            + ", shopSite=" + shopSite + ", label=" + label + ", rebateID=" + rebateID + ", rebate=" + rebate
            + ", innerID=" + innerID + ", parentRebate=" + parentRebate + ", parentInnerID=" + parentInnerID
            + ", orderPrice=" + orderPrice + ", orderDate=" + orderDate + ", isValid=" + isValid + ", isRebate="
            + isRebate + ", isParentRebate=" + isParentRebate + ", createDate=" + createDate + ", updateDate="
            + updateDate + ", username=" + username + ", name=" + name + "]";
    }
    
    /**
     * <pre>
     * <一句话功能简述>
     * <功能详细描述>
     * </pre>
     *
     * @author 姓名 工号
     * @version [版本号, 2017年6月28日]
     * @return
     * @see [类、类#方法、类#成员]
     */
    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((activity == null) ? 0 : activity.hashCode());
        result = prime * result + ((createDate == null) ? 0 : createDate.hashCode());
        result = prime * result + id;
        result = prime * result + ((innerID == null) ? 0 : innerID.hashCode());
        result = prime * result + isParentRebate;
        result = prime * result + isRebate;
        result = prime * result + isValid;
        result = prime * result + ((label == null) ? 0 : label.hashCode());
        result = prime * result + ((name == null) ? 0 : name.hashCode());
        result = prime * result + ((orderDate == null) ? 0 : orderDate.hashCode());
        result = prime * result + ((orderID == null) ? 0 : orderID.hashCode());
        long temp;
        temp = Double.doubleToLongBits(orderPrice);
        result = prime * result + (int)(temp ^ (temp >>> 32));
        result = prime * result + ((parentInnerID == null) ? 0 : parentInnerID.hashCode());
        temp = Double.doubleToLongBits(parentRebate);
        result = prime * result + (int)(temp ^ (temp >>> 32));
        result = prime * result + ((productName == null) ? 0 : productName.hashCode());
        temp = Double.doubleToLongBits(rebate);
        result = prime * result + (int)(temp ^ (temp >>> 32));
        result = prime * result + ((rebateID == null) ? 0 : rebateID.hashCode());
        result = prime * result + ((shopSite == null) ? 0 : shopSite.hashCode());
        result = prime * result + ((updateDate == null) ? 0 : updateDate.hashCode());
        result = prime * result + ((username == null) ? 0 : username.hashCode());
        return result;
    }
    
    /**
     * <pre>
     * <一句话功能简述>
     * <功能详细描述>
     * </pre>
     *
     * @author 姓名 工号
     * @version [版本号, 2017年6月28日]
     * @param obj
     * @return
     * @see [类、类#方法、类#成员]
     */
    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        OrderVO other = (OrderVO)obj;
        if (activity == null)
        {
            if (other.activity != null)
                return false;
        }
        else if (!activity.equals(other.activity))
            return false;
        if (createDate == null)
        {
            if (other.createDate != null)
                return false;
        }
        else if (!createDate.equals(other.createDate))
            return false;
        if (id != other.id)
            return false;
        if (innerID == null)
        {
            if (other.innerID != null)
                return false;
        }
        else if (!innerID.equals(other.innerID))
            return false;
        if (isParentRebate != other.isParentRebate)
            return false;
        if (isRebate != other.isRebate)
            return false;
        if (isValid != other.isValid)
            return false;
        if (label == null)
        {
            if (other.label != null)
                return false;
        }
        else if (!label.equals(other.label))
            return false;
        if (name == null)
        {
            if (other.name != null)
                return false;
        }
        else if (!name.equals(other.name))
            return false;
        if (orderDate == null)
        {
            if (other.orderDate != null)
                return false;
        }
        else if (!orderDate.equals(other.orderDate))
            return false;
        if (orderID == null)
        {
            if (other.orderID != null)
                return false;
        }
        else if (!orderID.equals(other.orderID))
            return false;
        if (Double.doubleToLongBits(orderPrice) != Double.doubleToLongBits(other.orderPrice))
            return false;
        if (parentInnerID == null)
        {
            if (other.parentInnerID != null)
                return false;
        }
        else if (!parentInnerID.equals(other.parentInnerID))
            return false;
        if (Double.doubleToLongBits(parentRebate) != Double.doubleToLongBits(other.parentRebate))
            return false;
        if (productName == null)
        {
            if (other.productName != null)
                return false;
        }
        else if (!productName.equals(other.productName))
            return false;
        if (Double.doubleToLongBits(rebate) != Double.doubleToLongBits(other.rebate))
            return false;
        if (rebateID == null)
        {
            if (other.rebateID != null)
                return false;
        }
        else if (!rebateID.equals(other.rebateID))
            return false;
        if (shopSite == null)
        {
            if (other.shopSite != null)
                return false;
        }
        else if (!shopSite.equals(other.shopSite))
            return false;
        if (updateDate == null)
        {
            if (other.updateDate != null)
                return false;
        }
        else if (!updateDate.equals(other.updateDate))
            return false;
        if (username == null)
        {
            if (other.username != null)
                return false;
        }
        else if (!username.equals(other.username))
            return false;
        return true;
    }
    
}
